home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2007 September / PCWSEP07.iso / Software / Linux / Linux Mint 3.0 Light / LinuxMint-3.0-Light.iso / casper / filesystem.squashfs / var / lib / dpkg / info / ssl-cert.postinst < prev    next >
Encoding:
Text File  |  2006-05-24  |  653 b   |  25 lines

  1. #!/bin/sh
  2.  
  3. . /usr/share/debconf/confmodule
  4.  
  5. # Create the ssl-cert system group for snakeoil ownership:
  6. if ! getent passwd ssl-cert >/dev/null; then
  7.     addgroup --quiet --system ssl-cert
  8. fi
  9.  
  10. # no need to perform any check. If the certificates are there
  11. # it will exit 0.
  12. make-ssl-cert generate-default-snakeoil
  13.  
  14. # Make sure the permissions on /etc/ssl/private are okay:
  15. chgrp ssl-cert /etc/ssl/private
  16. chmod g+x /etc/ssl/private
  17.  
  18. # If we're upgrading from an older version, fix the unreadable key:
  19. if dpkg --compare-versions "$2" lt 1.0.12; then
  20.     chgrp ssl-cert /etc/ssl/private/ssl-cert-snakeoil.key
  21.     chmod g+r /etc/ssl/private/ssl-cert-snakeoil.key
  22. fi
  23.  
  24.  
  25.